package com.dg.river.core.http;

import com.dg.river.core.util.ToastUtils;

/**
 * Created by hy on 2021/3/15
 * Description :
 */
public abstract class OnResultListener implements OnBaseResultListener {

    @Override
    public void onLoading() {

    }

    @Override
    public void onError(RequestCodeEnum requestCodeEnum, String errorMsg) {
        if (requestCodeEnum == RequestCodeEnum.NETWORK_EXCEPTION) {
            ToastUtils.getInstance().toast("网络异常，请检查网络");
        }
    }
}
